﻿#ifndef EPIBOLYROUTINE_H
#define EPIBOLYROUTINE_H

#include <QDialog>
#include <QCloseEvent>
#include "env.h"

namespace Ui {
class EpibolyRoutine;
}

class EpibolyRoutine : public QDialog
{
    Q_OBJECT

public:
    explicit EpibolyRoutine(QWidget *parent, const QString &_batch);
    ~EpibolyRoutine();

    void closeEvent(QCloseEvent *);
    bool saveRecord();
    void updateView();

private slots:
    void on_submit_clicked();

    void on_save_clicked();

private:
    Ui::EpibolyRoutine *ui;

    QString batch;
    QString name,number;
    QString remark;

    QSqlTableModel *model;
};

#endif // EPIBOLYROUTINE_H
